#include <iostream>
using namespace std;

class Base
{
public:
  virtual void Func1() {}
  virtual void Func2() {}
  void Func3(){}

private:
  int _d;
};
class Derive : public Base 
{
public:
  virtual void Func1()//虚函数的重写
  {}
private:
  int _b;
};

int main()
{
  Base b;
  Derive d;
  cout<<sizeof(b)<<endl;
  cout<<sizeof(d)<<endl;

  return 0;
}
